package com.gwt.dispatcher.dispatcher.server;

import com.gwt.dispatcher.server.IncrementCounterHandler;
import com.gwt.dispatcher.shared.IncrementCounterAction;


public class ActionHandlerMappings {

	/**
	 * Add <b>inside</b> this method the calls to the static registers for each
	 * of the <b>Groups of Actions</b>, ie:
	 *
	 *  <pre>
	 *  static void register() {
	 *  	DeviceActionHandlerMappings.register(handler);
	 *  }
	 *  </pre>
	 *
	 *  <p>
	 *  <b>DO NOT INCLUDE</b> any kind of "particular" mapping, just delegate that to
	 *  the proper Group Mapper
	 *  </p>
	 *
	 *
	 * @param handlermanagermap
	 */
	static void register(HandlerManagerMap handler) {

		//TODO:Other modules should have dependencies against the Dispatcher module...
		//... but the Dispatcher module should not have dependencies against them as in here.
		//This dependencies need to be removed!
		
	  handler.register(IncrementCounterAction.class, new IncrementCounterHandler());
		
	}

}
